package com.zzyl.nursing.service.impl;

import com.zzyl.common.core.page.TableDataInfo;
import com.zzyl.nursing.service.MemberOrdersService;
import com.zzyl.serve.domain.NursingProject;
import com.zzyl.serve.dto.NursingProjectDto;
import com.zzyl.serve.service.INursingProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *  会员订单服务实现类
 *
 * @Author mr.li
 * @Date 2025/7/31 20:02
 */
@Service
public class MemberOrdersServiceImpl implements MemberOrdersService {

    @Autowired
    private INursingProjectService nursingProjectService;

    /**
     * 获取会员项目列表
     * @param nursingProjectDto
     * @return
     */
    @Override
    public TableDataInfo<NursingProject> list(NursingProjectDto nursingProjectDto) {
        return  nursingProjectService.memberOrderList(nursingProjectDto);




    }

    /**
     * 获取会员项目详情
     * @param id
     * @return
     */
    @Override
    public NursingProject memberProjectById(Integer id) {
     return    nursingProjectService.getById(id);

    }
}
